<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <script type="text/javascript" src="/lib/haha/core/start.js"></script>
    <link rel="stylesheet" href="/CSS/pageNation.css">
    <link rel="stylesheet" href="/CSS/periodical.css">
    <style>
        .inp-btn1 {
            height: 50px;
        }
    </style>
</head>

<body>
    <div id="header"></div>
    <div class="container">
        <!-- 静态封面 -->
    
        <div  class="cont-box">
            <!--检索框-->
            <div class="search flex-center" style="display: none;">
                <!-- 搜索 -->
                <div class="searchBox flex" id='search_content'>
                    <!-- 搜索 -->
                    <div class="searchPart flex" id='search'>
                    </div>
                </div>
            </div>
            <!--检索框结束-->

            <div class="qk-content">
                <div class="qk-content-box flex-r-b">
                   
                    <div class="qk-book">
                        <div class="list">
                            
                            <div class="left bg_size">
                                <span>资源分类</span>
                            </div>
                            <div class="asideMenu" id='asideMenu1'>
                                <ul class="box1" id="startTarget">
                                    <li title="期刊">
                                        <p class="textAll qk  gray" data-sysid="22" data-dbcode="期刊">
                                            <label class="text"> 期刊</label></p>
                                    </li>
                                    
                                    <li title="会议">
                                        <p class="textAll hy" data-sysid="23" data-dbcode="会议" >
                                            <label class="text">会议</label></p>
                                    </li>
                                    
                                    </ul>
                            </div>
                            <!--这里是复选框-->
                            <!-- <div class="checkboxs zimuNav ">
                                <script id="pyszm" type="text/html">
                            <a href="javascript:void(0);">{{:#data}}</a>
                           </script>
                             <a class="a_all" href="javascript:void(0);">全部</a> 
                            </div> -->
                        </div>
                       
                    </div>
                    <div class="book-box" style="position: relative;">

                        <span id='periodicalMention'
                            style="display: none;text-align: center;position: absolute;left:46.7%;">暂无数据</span>
                        <ul style="min-height: 410px;width: 100%;" class="book" id="book">
                            <script id="periodicalData" type="text/html">
                              
                                <li clstag="channel">
                                    <div class="p-img">
                                      <a title='{{:#data["name"]}}' href='/periodical.html?clsId={{:#data["clsId"]}}' target="_blank">
                                        <img src='https://11.89.22.108:8288/file/showImg?dbcode=YQTWWQKKM_METADATA&filename={{:#data["digitFileName"]}}' data-lazy-img="done" width="160" height="199">
                                      </a>
                                    </div>
                                    <div class="p-name"><a title='{{:#data["name"]}}' href='/periodical.html?clsId={{:#data["clsId"]}}' target="_blank">{{:#data["name"]}}</a> </div>
                                    
                                  </li>
                        </script>
                        </ul>


                        <div class="tableData" id='conferenceTable'  style="display: none;">
                            <span id='KnowledgeMention' style="display: none;text-align: center;padding: 20px 0;">暂无数据</span>
                            <div style="min-height: 540px;overflow: hidden;"> 
                        <table>
                            <script id="periodicalData1" type="text/html">
                            <tr>
                                <td class="one"> <span class="num">{{:#data['num']}}</span></td>
                                <td class="two">
                                    <p>
                                        <a title='{{:#data["name"]}}' href='/periodical.html?clsId={{:#data["clsId"]}}' target="_blank">
                                        {{:#data["name"]}}
                                        </a>
                                    </p>
                                  
                                </td>
                            </tr>
                            
                            </script>
                            </table>
                            </div>
                        </div>
                        <!-- 分页 -->
                        <div class="pageNation" style="display: none;">
                            <div id="test1"></div>
                        </div>
                    </div>
                </div>
            </div>


        </div>
    </div>
    <!-- 脚部 -->
    <div id="footer"></div>
    <!-- 侧边固定按钮 -->

    <script type="text/javascript" src="/lib/layer-v3.1.1/layer/layer.js"></script>
    <script src="/lib/layui/layui.js"></script>
    <script type="text/javascript">

       
        $('.box1').click(function (e) {
           
        if ($(e.target).hasClass('text')) {
            $('.asideMenu>.box1 .gray').removeClass('gray');
            $(e.target).parent('p').addClass('gray');
           
           postTableData.sort=$(e.target).text().trim();
           postTableData.page=1;
           goMultiSearch();
            
            // 调用检索
        }
       else if ($(e.target).hasClass('textAll')) {
            // 先取消所有勾选项
            $('.asideMenu>.box1 .gray').removeClass('gray');
            $(e.target).addClass('gray');
            // 调用检索
        
            postTableData.sort=$(e.target).attr("data-dbcode")
            postTableData.page=1;
            goMultiSearch();
        } 
       
    })
      
        // 成果
       // $('#achievementMenu').load('/shared/achievementMenu.html');
    </script>
    <script>
       
       
        var  pyszm=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","p","Q","R","S","T","U","V","W","X","Y","Z"];
        var postTableData = {
            searchKey: '',
            searchValue: '',
            // 当前页
            page: 1,
            // 每页显示条数
            pageSize: 30,
            sort:"期刊",
            sortArr: [],
            yearArr: [],
            kszm:"",//刊首字母
            tableCode: "YQTWWQKKM_METADATA"
        };
        var list = [];
        var className = base.getQueryParam('className');
        function render(data, index) {
            return {
                showImg: function (data, index) {
                    if (Number(data.sysId) % 2) {
                        return '/image/periodical/book.png';
                    } else {
                        return '/image/periodical/book2.png';
                    }
                },
                text: function (data, index) {
                    return base.overflow(data.title, "tempSpan4GetStr", 50)
                }
            }
        }
        var callBackPage = function callBack(curr, limit) {
        };
        function goMultiSearch() {
            postTableData.searchKey = $("#searchselect").find("option:selected").val();
            postTableData.searchValue = $("#searchWord").val();
            if(postTableData.sort=="期刊"){
             
                $("#conferenceTable").hide()
                 $("#book").show()
                 $(".pageNation").hide()
            // 侧边栏数据
            pageData.tableData(config.getQKKMpagelist, postTableData, 'periodicalData', 'test1', false, '#periodicalMention', render(), true, callBackPage);
            if ($("#searchWord").val() &&!base.patrn.test($("#searchWord").val())) {
                pageData.InsertLog('期刊阅览', '检索', $("#searchWord").val());
            }
            }
            else if(postTableData.sort=="会议"){
                pageData.tableData(config.getQKKMpagelist, postTableData, 'periodicalData1', 'test1', true, '#periodicalMention', render(), true, callBackPage);
            if ($("#searchWord").val() &&!base.patrn.test($("#searchWord").val())) {
                pageData.InsertLog('期刊阅览', '检索', $("#searchWord").val());
            }
                 $("#conferenceTable").show()
                 $("#book").hide()
                 $(".pageNation").show()
                 
            }
        }
        $(function () {

            // var resdata=$("#pyszm").render(pyszm)
            // $(".a_all").before(resdata);
            // // 点击检索事件
            // $('#searchBtn').click(function () {
            //     goMultiSearch();
            // })
            pageData.tableData(config.getQKKMpagelist, postTableData, 'periodicalData', 'test1', true, '#periodicalMention', render(), true, callBackPage);
            if ($("#searchWord").val() &&!base.patrn.test($("#searchWord").val())) {
                pageData.InsertLog('期刊阅览', '检索', $("#searchWord").val());
            }

            var type = base.getQueryParam('type');
       
       shared.useLayout("act-1");
       core.useTemplateAuto('selectArr', config.selectqkArr, {});
       if(type=="hy"){
          
           $(".hy").addClass("gray")
           $(".qk").removeClass("gray")
           postTableData.sort='会议';
           postTableData.page=1;
           goMultiSearch();
       }
          
    //         $(".zimuNav a").click(function() {
    //     $(this).addClass("curZimnA").siblings().removeClass("curZimnA");
    //     var value = $(this).text();
    //     if (value == "全部")
    //     postTableData.kszm="";
    //     else
    //     postTableData.kszm=value;
    //         goMultiSearch();
    // });

       

        })
    </script>
</body>
<style>

.tableData table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}
.tableData table tr:last-child{
    border-bottom: 1px solid #c4c6c6;
}
.tableData table tr {
    position: relative;
    border-top: 1px solid #c4c6c6;
   
}
.tableData table tr:nth-child(even){
    background-color: #f7f7f7;
}

.tableData .one {
    width: 90px !important;
    height: 44px !important;
    text-align: center;
    line-height: 44px;
    font-size: 20px;
    font-weight: bold;
    font-style: italic;
    color: #333333;
}
.tableData .one::before {
    position: absolute;
    left: 88px;
    top: 16px;
    content: '';
    width: 1px;
    height: 56px;
    border-right: 1px solid #c4c6c6;
}
.tableData table .two p {
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin-left: 10px;
    font-size: 16px;
    height: 20px;
    line-height: 20px;
    width: 90%;
    color: #1195e1;
}
.one .num {
    width: 90px;
    display: block;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.asideMenu {
    font-size: 16px;
    max-width: 238px;
    margin: 0 auto;
    border: 1px solid #EB0B0C;
    min-height: 225px;
}
.asideMenu .box1>li {
    width: 200px;
    background-color: #F8F8F8;
    line-height: 40px;
    margin: 0 auto;
    border: 1px solid #CCCCCC;
    font-size: 0px;
    font-weight: 400;
    margin-top: 6px;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gray {
    background-color: rgb(229, 234, 235);
}
.asideMenu .box1>li>p {
    width: 100%; 
    font-size: 16px;
    line-height: 40px;
    cursor: pointer;
    text-align: center;
}
.asideMenu .box1 li label {
    width: 110px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.search {
   
    padding-top: 24px;
}
    .searchBox {
    width: 930px;
    margin: 0 auto;
    border: 1px solid #cccccc;
    background-color: #f3f4f4;
   
}
.searchPart {
    margin: 24px 0;
}
.zimuNav {
    padding: 10px 0 2px 18px;
}
.zimuNav a {
    float: left;
    width: 26px;
    height: 26px;
    text-align: center;
    line-height: 26px;
    color: red;
    /* background-color: #E5A850; */
    border: 1px solid #FF5722;
    margin: 0 13px 8px 0;
   
}
.zimuNav .a_all{
    
    width: 40px;
    height: 26px;
    text-align: center;
    line-height: 26px;
    color: #FF5722;
    margin: 0 13px 8px 0;
    /* background-color:#E5A850 */
}
.book{
    overflow: hidden;
}

.book li {
    float: left;
    width: 185px;
    height: 230px;
    padding: 20px;
    padding-bottom: 0;
    border-right: 1px solid #eee;
}
.p-img{
    text-align: center;
}
.p-name {
    height: 36px;
    line-height: 19px;
    overflow: hidden;
    font-family: simsong;
    margin-top: 5px;
    margin-bottom: 15px;
    font: 14px/150% tahoma,arial,Microsoft YaHei,Hiragino Sans GB,"\u5b8b\u4f53",sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;

    
}
a {
    color: #666;
    text-decoration: none;
}
.curZimnA{
    background-color:#E5A850
}
.bg_size{
    width: 140px;
    height: 50px;
    /* float: left; */
    color: #ffffff;
    font-size: 18px;
    background-image: url(/image/serverImg/bg_title_data_sources.png);
    background-size: 100%;
}
.bg_size span{
    display: inline-block;
    padding-top: 12px;
    padding-left: 20px;
    font-size: 18px;
    font-weight: 400;
    color: #FFFFFF;
}
</style>

</html>